package com.supcalls.feign;

import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestParam;

import java.math.BigDecimal;

@FeignClient(name = "account-service")
public interface AccountClient {
    @PostMapping("/account/decrease")
    void decrease(@RequestParam Long userId, @RequestParam BigDecimal money);
}
